package top.rainbowecho.ai.domain.model.robot.value.talk;

import lombok.AllArgsConstructor;
import lombok.Getter;
import top.rainbowecho.common.domain.shared.ValueObject;

import javax.validation.constraints.NotBlank;

@Getter
@AllArgsConstructor
public class Talk implements ValueObject<Talk> {
    @NotBlank(message = "智能聊天中的session不能为空")
    private String session;

    @NotBlank(message = "智能聊天中的question不能为空")
    private String question;

    /**
     * 值对象的比较方法
     *
     * @param other 比较对象
     * @return true表示值对象相等，反之不等
     */
    @Override
    public boolean sameValueAs(Talk other) {
        return false;
    }
}
